/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 2rem;
    background-color: #f5f7fa;
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    margin: 2rem auto;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
}

.login-card h2 i {
    margin-right: 10px;
    color: var(--primary);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    /* margin-bottom: 5px; */
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #777;
    font-size: 1rem;
}

.input-group input {
    padding: 0.5rem 40px;
    width: 100%;
    font-size: 1rem;
}

.eye-btn {
    display: flex;
    align-items: center;
    position: absolute;
    right: 3rem;
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ddd;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
}

.checkmark:after {
    content: "";
    display: none;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login,
.btn-register {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin: 1rem 0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.6s;
}

.btn-login:hover,
.btn-register:hover {
    transition: all 0.3s;
}

.social-login {
    margin: 1.5rem 0;
    text-align: center;
}

.social-login p {
    color: #777;
    margin-bottom: 1rem;
    position: relative;
}

.social-login p:before,
.social-login p:after {
    content: "";
    position: absolute;
    height: 1px;
    width: 30%;
    background-color: #ddd;
    top: 50%;
}

.social-login p:before {
    left: 0;
}

.social-login p:after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.google {
    background-color: #db4437;
}

.social-btn.wechat {
    background-color: #09b83e;
}

.social-btn.github {
    background-color: #333;
}

.register-link {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .login-container {
        min-height: calc(100vh - 80px);
    }
}
